/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package example.hello;

import java.io.IOException;
import java.rmi.Naming;
import java.rmi.RemoteException;
import java.rmi.RMISecurityManager;
import java.rmi.server.UnicastRemoteObject;
import java.util.logging.Level;
import java.util.logging.Logger;
import model.process.DisplayProcess;
import rie.api.SystemeInfoFactory;
import rie.model.SystemeInfo;

public class SystemeInfoFactoryImpl extends UnicastRemoteObject implements SystemeInfoFactory {

    public SystemeInfoFactoryImpl() throws RemoteException {
    }

    public SystemeInfo createSysteme() throws RemoteException{
        try {       
            return DisplayProcess.getSystem();
        } catch (IOException ex) {
            Logger.getLogger(SystemeInfoFactoryImpl.class.getName()).log(Level.SEVERE, null, ex);
        }
        return null;
    }

}